package com.igroupes.ovineherd.model;

import com.igroupes.ovineherd.model.Style.HiddenStyle;
import com.igroupes.ovineherd.model.dto.attribute.Basic;
import com.igroupes.ovineherd.util.DateUtils;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;


@Setter
@Getter
public class IParentModelDataV2<T extends Basic> implements Serializable {
    private HiddenStyle id;
    private String name; //标签
    private String desc; //描述
    private String beanType; //所属包
    private T attributes; //属性集合
    private String addTime = DateUtils.getDateTime();
    private String updateTime = DateUtils.getDateTime();


    public IParentModelDataV2(String name, String desc, String beanType, T attributes) {
        this.name = name;
        this.desc = desc;
        this.beanType = beanType;
        this.attributes = attributes;
    }
}
